package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.CarKeep;
import com.example.demo.entity.CarKeep2;
import com.example.demo.repository.CarKeep2Repository;

@Service
public class CarKeep2Service extends BaseService<CarKeep2,Integer>{
	@Autowired
	private CarKeep2Repository carkeepDao;

	public List<CarKeep2> findByCarKeep(CarKeep car) {
		return carkeepDao.findByCarKeep(car);
	}

	public List<CarKeep2> findByCarKeepId(Integer id) {
		return carkeepDao.findByCarKeepId(id);
	}

	public CarKeep2 findBycarKeep(Integer id) {
		// TODO Auto-generated method stub
		return carkeepDao.findByCarKeep(id);
	}
}
